package org.acooly.secretbox.ui;

import org.acooly.secretbox.R;
import org.acooly.secretbox.common.BaseActivity;
import org.acooly.secretbox.service.UserService;
import org.acooly.secretbox.service.impl.UserServiceImpl;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class ImpexpActivity extends BaseActivity {
	private UserService userService;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.impexp);
		userService = new UserServiceImpl(this);

		// 导入
		Button importButton = (Button) findViewById(R.id.import_start);
		importButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
			}
		});
		// 导入
		ImageView downloadTemplate = (ImageView) findViewById(R.id.download_template);
		downloadTemplate.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				downloadTemplate();
			}
		});

		// 导出
		Button exportButton = (Button) findViewById(R.id.export_start);
		exportButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
			}
		});
	}

	private void downloadTemplate() {
		Intent intent = new Intent(this, FileManagerActivity.class);
		startActivity(intent);

	}

}